package com.cy.pj.sys.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cy.pj.common.vo.JsonResult;
import com.cy.pj.common.vo.PageResult;
import com.cy.pj.sys.entity.SysItem;
import com.cy.pj.sys.service.SysItemService;

@RestController
@RequestMapping("/item/")
public class SysItemController {

	@Autowired(required = false)
	private SysItemService sysItemService;
	
	/**
	 * 分页查询
	 */
	@RequestMapping("doFindPageObjects")
	public JsonResult doFindPageObjects(String itemName,Integer pageCurrent){
		PageResult<SysItem> list=
				sysItemService.findPageObjects(itemName,pageCurrent);
		return new JsonResult(list);
	}

}














